.select2-container--bootstrap .select2-selection {
    background-color: transparent;
    border: 1px solid #ccc;
    border-radius: 8px;
    color: #555555;
    font-size: 14px;
    outline: 0;
    position: relative;
    z-index: 2;
    width: 100% !important;
}

.select2-container--bootstrap .select2-search--dropdown .select2-search__field {
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 8px;
    color: #555555;
    font-size: 14px;
}

.select2-container--bootstrap .select2-search__field {
    outline: 0;
}

.select2-container--bootstrap .select2-search__field::-webkit-input-placeholder {
    color: #999;
}

.select2-container--bootstrap .select2-search__field:-moz-placeholder {
    color: #999;
}

.select2-container--bootstrap .select2-search__field::-moz-placeholder {
    color: #999;
    opacity: 1;
}

.select2-container--bootstrap .select2-search__field:-ms-input-placeholder {
    color: #999;
}

.select2-container--bootstrap .select2-results__option {
    padding: 6px 12px;
}

.select2-container--bootstrap .select2-results__option[role="group"] {
    padding: 0;
}

.select2-container--bootstrap .select2-results__option[aria-disabled="true"] {
    color: #777777;
    cursor: not-allowed;
}

.select2-container--bootstrap .select2-results__option[aria-selected="true"] {
    background-color: #f5f5f5;
    color: #262626;
}

.select2-results__options {
    max-height: 330px;
    overflow-y: auto;
}

.select2-container--bootstrap .select2-results__group {
    color: #777777;
    display: block;
    padding: 6px 12px;
    font-size: 12px;
    line-height: 1.42857143;
    white-space: nowrap;
}

.select2-container--bootstrap .select2-selection--single {
    height: 33.5px;
    line-height: 1.42857143;
    padding: 6px 12px 6px 6px;
}

.input__button {
    transition: filter ease-out 300ms;
    color: white;
    font-size: 0.85rem;
    white-space: nowrap;
    background-color: var(--secondary);

    border-color: var(--secondary);
    border-radius: 0 8px 8px 0;
}

button.partial__type {
    transition: background-color ease-out 300ms, color ease-out 300ms;
    color: var(--secondary);
    font-size: 1.25rem;
    font-family: "Inter SemiBold";
    font-weight: 600;
    border: 1px solid var(--secondary);
    border-radius: 8px;
    background-color: transparent;
    padding-block: 1rem;
}

button.partial__type:hover {
    color: white;
    background-color: #0026ab;
    border-color: #0026ab;
}

.search-btn {
    position: absolute;
    color: #717d92;
    background: none;
    border: none;
    top: 50%;
    transform: translateY(-50%);
    left: 0.5rem;
}

.search-btn:hover,
.search-btn:focus {
    color: #717d92 !important;
    outline: none;
    border: none;
}

.modal,
.modal-dialog,
.modal-content {
    border: none !important;
    box-shadow: none;
}

.modal-top {
    border-top: 5px solid var(--secondary) !important;
}

.modal-backdrop {
    background-color: #b4b4b4 !important;
}

.btn-wrapper {
    --clr-cancel: #bcbcbc;
    --clr-submit: #047f00;
    --clr-delete: #ef2222;
    --clr-confirm: #007bff;
    --clr-button: #091e42;

    display: flex;
    align-items: center;
    gap: 0.5rem;
    align-self: flex-end;
    flex-wrap: wrap;
}

.btn-wrapper .btn {
    min-width: 80px;
}

.btn-cancel {
    color: black;
    /* transition: background-color ease-out 300ms, color ease-out 300ms; */
    background-color: white;
    border: 1px solid var(--clr-cancel);
    border-radius: 6px !important;
}

.btn-cancel i {
    color: black;
}

.btn-cancel:hover i {
    color: white;
}

.btn-cancel:hover {
    color: white;
    background-color: #0026AB;
    /* border: 1px solid var(--clr-cancel); */
    /* box-shadow: 0 0 5px 5px rgba(0, 0, 0, 0.081); */
}

.btn-submit {
    background: #0026AB;
    color: white;
    /* border: 1px solid var(--secondary); */
    padding-top: 5.24px;
    padding-bottom: 5.24px;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 6px !important;
    border: 1px solid #0026AB;
}

.btn-submit:hover,
.btn-submit:focus {
    background-color: #0026AB;
    color: white;
    border: 1px solid #0026AB;
}

.buttons__delete {
    transition: filter ease-out 300ms;
    color: white;
    background-color: var(--clr-delete);
    border: 1px solid var(--clr-delete);

    padding: 0.35rem 1.5rem;
}

.buttons__delete:hover {
    color: white;
    filter: brightness(85%);
}

.buttons__confirm {
    transition: filter ease-out 300ms;
    color: white;
    background-color: var(--clr-confirm);
    border: 1px solid var(--clr-confirm);

    padding: 0.35rem 1.5rem;
}

.buttons__confirm:hover {
    color: white;
    filter: brightness(85%);
}

.modal__title {
    font-size: 1.2rem;
    font-family: "Inter SemiBold";
    font-weight: 600;
}

header {
    display: flex;
    flex-direction: column;
    align-items: start;
    row-gap: 1rem;
    width: 100%;
    margin-block: 1.5rem 0.5rem;
}

.btn-wrapper {
    align-self: self-start;
}

.page-link {
    color: var(--primary);
    background-color: white;
}

.page-item:hover {
    color: #fff !important;
}

.page-link:hover {
    color: white;
    background-color: #091e42;
    border-color: #091e42;
    /* border-color: var(--primary); */
}

.modal-hat {
    background-color: var(--secondary);
    width: 100%;
    height: 5px;
}

#products-modal {
    width: 100vw;
    height: 90vh;
}

@media (min-width: 992px) {
    .btn-wrapper {
        align-self: center;
    }

    header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    #products-modal {
        width: 35vw;
        transform: translateX(-50%);
        left: 50%;
    }
}

/* Card Details Style */

.details-wrapper {
    display: flex;
    flex-direction: column;
    align-items: start;
}

.details-wrapper * {
    flex-basis: 50%;
}

.details-label {
    font-size: 0.9rem;
    color: grey;
    font-weight: 500;
}

.details-value {
    font-family: "Inter Medium";
    font-weight: 500;
}

.details-value-bold {
    font-family: "Inter Bold" !important;
}

.details-value-regular {
    font-family: "Inter Regular" !important;
    font-weight: normal !important;
}

.wrapper-horizontal {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.wrapper-horizontal .details-label {
    font-size: 1rem;
    color: black;
}

.wrapper-horizontal .details-value {
    text-align: right;
    font-family: "Inter Regular";
    font-size: 1rem;
    color: black;
}

/* Timeline Style */
.custom-timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.custom-timeline-item {
    display: flex;
    width: 100%;
    position: relative;
}

.custom-timeline-item:not(:last-of-type)::after {
    content: "";
    position: absolute;
    border-right: 1px dashed var(--primary);
    top: 3px;
    bottom: 0;
    left: 5px;
    margin-right: 15px;
}

.timeline-content {
    display: flex;
    padding-left: 20px;
    flex-direction: column;
    flex-grow: 1;
    font-size: 0.9rem;
    padding-bottom: 20px;
}

.timeline-content::before {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    left: 3px;
    top: 6px;
    border-radius: 50%;
    background-color: var(--primary);
    z-index: 2;
}

.timeline-content::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    left: 0;
    top: 3px;
    background-color: white;
    border: 1px solid var(--primary);
    border-radius: 50%;
    z-index: 1;
}

.timeline-date {
    color: grey;
    font-size: 0.8rem;
}

/* Pagination Livewire */
.pagination-livewire {
    list-style: none;
    margin-bottom: 0 !important;
}

.pagination-livewire {
    display: flex;
    align-items: center;
}

.pagination-livewire .page-item {
    width: fit-content;
    padding: 5px 15px;
    color: black;
    border: none;
    outline: none;
    background-color: transparent;
    border-radius: 6px;
}

ul.pagination-livewire .page-item .page-link {
    text-decoration: none;
    color: black;
    text-align: center;
}

ul.pagination-livewire .page-item .page-link:hover {
    background-color: transparent;
    text-decoration: none;
    color: black;
}

.pagination-livewire .page-item.active {
    color: white;
    background-color: var(--secondary) !important;
    box-shadow: 0 3px 10px #0000000d;
    border: none !important;
    outline: none !important;
}

.pagination-livewire .page-item.active .page-link {
    color: white;
}

.image-spotlight {
    border-radius: 15px;
    height: 250px;
    width: 250px;
    object-fit: cover;
}

.modal-category-nav {
    border: none;
    background-color: transparent;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 15px;
}

.modal-category-nav span {
    color: black;
}

input::placeholder,
textarea::placeholder {
    font-style: italic !important;
    color: lightgrey !important;
}

[class*="btn-outline-"] {
    background-color: white !important;
}

.btn-outline-secondary,
.btn-outline-secondary:hover {
    color: #6c757d !important;
    border-radius: 6px !important;
}

/* Pagination Style */
ul.pagination {
    display: flex;
}

ul.pagination li a,
ul.pagination li span {
    border: 1px solid var(--kickerGrey);
    text-decoration: none;
    color: black;
    text-align: center;
    padding: 10px 15px !important;
}

ul.pagination li.active a,
ul.pagination li.active span {
    background-color: #0026AB !important;
    border-color: #0026AB !important;
    color: white !important;
}

ul.pagination li:hover a {
    color: #2e40ff;
}

ul.pagination li:first-of-type a,
ul.pagination li:first-of-type span {
    border-radius: 8px 0 0 8px;
}

ul.pagination li:last-of-type a,
ul.pagination li:last-of-type span {
    border-radius: 0 8px 8px 0;
}

.selected-tag-count {
    background-color: var(--theadGrey);
    color: var(--textGrey);
    padding: 5px 10px;
    border-radius: 8px;
}

.input-group-append.disabled {
    background-color: #e9ecef;
}

.dropdown.open .custom-dropdown-menu {
    margin-top: 33.5px;
    display: block;
}

.custom-dropdown-menu .dropdown-list-items {
    max-height: 300px;
    overflow-y: scroll;
}

.btn-check:checked+.btn {
    color: white;
    background-color: #0026AB !important;
    border-color: #0026AB !important;
}

.btn-outline-kicker:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-outline-kicker {
    color: var(--textGrey);
}

.thead-sticky {
    position: sticky;
    top: -1px;
    overflow: visible;
    background-color: white;
    z-index: 1;
}

.underline-link {
    color: black;
    text-decoration: underline !important;
}

.border-light {
    border: 1px solid #dddfe3 !important;
}

.form-control,
.form-select {
    border-radius: 5px !important;
}

.input-group .form-control:is(:first-child) {
    border-radius: 5px 0 0 5px !important;
}

.rounded {
    border-radius: 5px !important;
}

.rounded-custom {
    border-radius: 8px !important;
}

.input-group-button {
    border: 1px solid #dddfe3;
    border-radius: 5px;
}

.input-group-button input,
.input-group-button input:focus {
    border: none;
    outline: none;
}

.btn-outline-danger:hover {
    background-color: #dc3545 !important;
}

.btn-outline-danger:hover,
.btn-outline-danger:hover i {
    color: white;
}

.btn-generate,
.btn-generate:focus {
    border: none;
    outline: none;
    color: var(--primary);
}

.status-label {
    padding: 5px 10px;
    border-radius: 5px;
    width: fit-content;
}

.status-success {
    background-color: #b4fdd9;
    color: #2c6941;
}

.w-55 {
    width: 55%;
}

.w-25 {
    width: 25%;
}

.w-15 {
    width: 15%;
}

.w-6 {
    width: 6%;
}

a.no-style,
a.no-style span,
a.no-style div {
    color: black !important;
}

.gray-bg {
    background-color: rgb(241, 241, 241);
}

.product-hover:hover {
    background-color: rgb(221, 237, 255);
}

.select-disabled {
    pointer-events: none;
    background-color: #e9ecef;
    color: #6c757d;
}

/* tabs report */
.custom-tabs-wrapper {
    background: #fff;
    border-radius: 12px;
    padding: 6px;
    border: 1px solid #e5e7eb;
    display: inline-block;
}

.custom-tabs-notif {
    background: #fff;
    padding: 6px;
    padding-left: 0px;
    display: inline-block;
    width: 100%;
}

.custom-tabs {
    border-bottom: none;
    gap: 6px;
}

.custom-tabs .nav-link {
    border: none;
    border-radius: 10px;
    padding: 10px 22px;
    color: #6b7280;
    font-weight: 500;
    background: transparent;
}

.custom-tabs-notif .nav-link {
    border: none;
    border-radius: 10px;
    font-size: 14px;
    padding: 8px 18px;
    color: #6b7280;
    font-weight: 500;
    background: transparent;
}

.custom-tabs .nav-link.active {
    background-color: #0026AB;
    /* dark navy */
    color: #ffffff;
}

/* charts bar payments */
.chart-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.chart-title {
    font-size: 14px;
    font-weight: 600;
    color: #2D2B2D;
    margin-bottom: 1rem;
}

.payments-bar {
    height: 24px;
    border-radius: 4px;
    display: flex;
    overflow: visible;
    position: relative;
    margin-bottom: 0.75rem;
}

.payments-bar>div {
    position: relative;
    cursor: pointer;
    min-width: 2px;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.payments-bar>div:first-child {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.payments-bar>div:last-child {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.payments-bar>div:hover {
    filter: brightness(1.1);
    transform: scaleY(1.05);
    z-index: 5;
}

.payments-bar .paid {
    background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

.payments-bar .partial {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
}

.payments-bar .unpaid {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
}

.payments-bar .overdue {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
}

.payment-tooltip {
    position: absolute !important;
    bottom: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #1a1a2e !important;
    color: #fff !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-size: 0.75rem !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.2s ease, visibility 0.2s ease !important;
    z-index: 1000 !important;
    margin-bottom: 8px !important;
    pointer-events: none !important;
    display: block !important;
}

.payment-tooltip::after {
    content: '' !important;
    position: absolute !important;
    top: 100% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    border: 6px solid transparent !important;
    border-top-color: #1a1a2e !important;
}

.payments-bar>div:hover .payment-tooltip {
    opacity: 1 !important;
    visibility: visible !important;
}

.payments-legend {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.75rem;
}

.payments-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.payments-legend .legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.payments-bar-wrapper {
    max-width: 89%;
}

@media (min-width: 992px) {
    .payments-bar-wrapper {
        max-width: 100%;
    }
}

.pagination-wrapper {
    overflow: auto;
}